Change in openvpn[release/2.6]: Support for long INFO/INFO_PRE messages
A message that is not in the archive (sent off-list or not yet received): gerrit.1693837331000.I2139b62117ba69d643b585d2610e8aef15f71d3e@...2715...
Attention is currently required from: flichtenheld.
Hello flichtenheld,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/327?usp=email
to review the following change.
Change subject: Support for long INFO/INFO_PRE messages
......................................................................
Support for long INFO/INFO_PRE messages
Current hardcoded limit is not defined anywhere and the server (CloudConnexa) sends the longer string in some cases.
---
M src/openvpn/push.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/27/327/1
src/openvpn/push.c +1 -1
@@ -243,7 +243,7 @@* We use >INFOMSG here instead of plain >INFO since INFO is used to * for management greeting and we don't want to confuse the client */ -struct buffer out =alloc_buf_gc (256 , &gc); +struct buffer out =alloc_buf_gc (1 +7 +1 +BLEN (&buf) +1 , &gc);buf_printf (&out,">%s:%s" ,"INFOMSG" , m);management_notify_generic (management,BSTR (&out));
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/327?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I2139b62117ba69d643b585d2610e8aef15f71d3e
Gerrit-Change-Number: 327
Gerrit-PatchSet: 1
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: stipa.
flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/327?usp=email )
Change subject: Support for long INFO/INFO_PRE messages
......................................................................
Patch Set 1: Code-Review+1
(3 comments)
Commit Message:
http://gerrit.openvpn.net/c/openvpn/+/327/comment/90da86d9_5dc75b60 :
PS1, Line 10: the server (CloudConnexa) sends the longer string in some cases. "sends the longer string" -> "sends longer messages"
Patchset:
PS1:
looks technically okay
File src/openvpn/push.c:
http://gerrit.openvpn.net/c/openvpn/+/327/comment/cf2407e8_9d3632ee :
PS1, Line 246: struct buffer out = alloc_buf_gc(1 + 7 + 1 + BLEN(&buf) + 1, &gc);
"1 + 7 + 1" -> strlen(">INFOMSG:")
might even move the ">INFOMSG:" into a preprocessor define and then reuse it.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/327?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I2139b62117ba69d643b585d2610e8aef15f71d3e
Gerrit-Change-Number: 327
Gerrit-PatchSet: 1
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: stipa <[email protected]...>
Gerrit-Comment-Date: Mon, 04 Sep 2023 14:39:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: flichtenheld, stipa.
Hello flichtenheld,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/327?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Code-Review+1 by flichtenheld
Change subject: Support for long INFO/INFO_PRE messages
......................................................................
Support for long INFO/INFO_PRE messages
Current hardcoded limit is not defined anywhere and the server (CloudConnexa) sends the longer string in some cases.
---
M src/openvpn/push.c
1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/27/327/2
src/openvpn/push.c +4 -2
@@ -42,6 +42,8 @@static char push_reply_cmd[] ="PUSH_REPLY" ; +#define INFOMSG_MAN ">INFOMSG:" +/* * Auth username/password *
@@ -243,8 +245,8 @@* We use >INFOMSG here instead of plain >INFO since INFO is used to * for management greeting and we don't want to confuse the client */ -struct buffer out =alloc_buf_gc (256 , &gc); -buf_printf (&out,">%s:%s" ,"INFOMSG" , m); +struct buffer out =alloc_buf_gc (strlen (INFOMSG_MAN ) +BLEN (&buf), &gc); +buf_printf (&out,"%s%s" ,INFOMSG_MAN , m);management_notify_generic (management,BSTR (&out));gc_free (&gc);
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/327?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I2139b62117ba69d643b585d2610e8aef15f71d3e
Gerrit-Change-Number: 327
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: stipa <[email protected]...>
Gerrit-MessageType: newpatchset
Attention is currently required from: flichtenheld.
stipa has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/327?usp=email )
Change subject: Support for long INFO/INFO_PRE messages
......................................................................
Patch Set 2:
(1 comment)
File src/openvpn/push.c:
http://gerrit.openvpn.net/c/openvpn/+/327/comment/a70eded3_8b1ba798 :
PS1, Line 246: struct buffer out = alloc_buf_gc(1 + 7 + 1 + BLEN(&buf) + 1, &gc);
Quoted 1 line
"1 + 7 + 1" ->
strlen(">INFOMSG:")[…]
Acknowledged
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/327?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I2139b62117ba69d643b585d2610e8aef15f71d3e
Gerrit-Change-Number: 327
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Mon, 04 Sep 2023 15:44:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Gerrit-MessageType: comment
Attention is currently required from: flichtenheld, stipa.
plaisthos has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/327?usp=email )
Change subject: Support for long INFO/INFO_PRE messages
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
This is something that only affects the properitary Cloud implementation. OpenVPN 2.x will also never send longer URLs since we are currently limited by the MAX_PARAM_SIZE (=256) define on sending URLs to the client.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/327?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I2139b62117ba69d643b585d2610e8aef15f71d3e
Gerrit-Change-Number: 327
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-CC: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: stipa <[email protected]...>
Gerrit-Comment-Date: Tue, 05 Sep 2023 13:46:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
stipa has abandoned this change. ( http://gerrit.openvpn.net/c/openvpn/+/327?usp=email )
Change subject: Support for long INFO/INFO_PRE messages
......................................................................
Abandoned
We decided that this is a server bug, it is not supposed to send that long INFO mesagess. --
To view, visit http://gerrit.openvpn.net/c/openvpn/+/327?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I2139b62117ba69d643b585d2610e8aef15f71d3e
Gerrit-Change-Number: 327
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-CC: plaisthos <[email protected]...>
Gerrit-MessageType: abandon